46cf14d73684cc15c526b06f6b019a6e1f88c1ff,clc/modules/msgs/src/main/java/com/eucalyptus/crypto/util/SslSetup.java,SslSetup,getTrustedCertificate,#,154

Before Change


  private static X509Certificate getTrustedCertificate( ) {
    try {
      synchronized ( SslSetup.class ) {
        if ( trusted == null ) {
          trusted = ( X509Certificate ) SystemCredentials.getKeyStore( ).getCertificate( ComponentIds.lookup(Eucalyptus.class).name( ) );
          trustedKey = SystemCredentials.getKeyStore( ).getKeyPair( ComponentIds.lookup(Eucalyptus.class).name( ), ComponentIds.lookup(Eucalyptus.class).name( ) ).getPrivate( );
        }
        return trusted;
      }

After Change


  private static X509Certificate[] getTrustedCertificates( ) {
    try {
      synchronized ( SslSetup.class ) {
        if ( trustedCerts == null ) {
          trustedCerts = SystemCredentials.getKeyStore( ).getAllCertificates( ).toArray( new X509Certificate[0] );
        }
        return trustedCerts;
      }